﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    public string m_flash;
    public int lang = 2;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            
            if (Request.QueryString["lang"] != "" && Request.QueryString["lang"] != null) lang = Convert.ToInt32(Request.QueryString["lang"]);

            TinTucDataSet gtDs = new TinTucHelper().LoadLoaiTinTuc(3,lang);
            rptKinhTe.DataSource = gtDs;
            rptKinhTe.DataBind();

            TinTucDataSet gtDst = new TinTucHelper().LoadLoaiTinTuc(2, lang);
            rptVanHoa.DataSource = gtDst;
            rptVanHoa.DataBind();

            TinTucDataSet gtDsts = new TinTucHelper().LoadLoaiTinTuc(1, lang);
            rptNhanTai.DataSource = gtDsts;
            rptNhanTai.DataBind();

            TrangTinhDataSet TrangTinhds = new TrangTinhDataSet();
            TrangTinhHelper TrangTinhhelper = new TrangTinhHelper();
            TrangTinhds = TrangTinhhelper.LoadTrangTinhViTri("Flash", 1);


            if (!TrangTinhds.TrangTinh[0].IsNoiDungNull()) m_flash = TrangTinhds.TrangTinh[0].NoiDung;
        }
    }
}
